namespace CoreMobile.net
{
    public abstract class NetObject
    {

        public static string DEFAULT_IP = "200.111.112.36";//"www2.easytec.cl";
        public static int DEFAULT_SEND_PORT = 8081;

        private string ip;
        private int port;
        private LowLevelProtocol protocol;

        protected NetObject(string ip, int port, LowLevelProtocol protocol)
        {
            this.Ip = ip;
            this.Port = port;
            this.protocol = protocol;
        }

        private NetObject()
        {
        }

        public string Ip
        {
            get { return ip; }
            set { ip = value; }
        }

        public int Port
        {
            get { return port; }
            set { port = value; }
        }

        public LowLevelProtocol Protocol
        {
            get { return protocol; }
           // set { protocol = value; }
        }
    }
}